package com.lhd._07springaop.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author lhd
 * date 2024/4/29
 * @apiNote
 * 测试类
 */
public class TestCalculator {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(
                "com.lhd._07springaop"
        );
        CalculatorImpl calculator = ctx.getBean(CalculatorImpl.class);
        System.out.println(calculator.add(20, 10));

    }
}
